#include <string>
#include <fermat/http/http_server.h>
#include <fermat/common/logging.h>
#include <fermat/event/event_loop.h>
#include <fermat/net/socket_address.h>
#include <fermat/ext/json/document.h>
#include <fermat/common/any.h>

class HttpServerTest{
public:
	HttpServerTest(fermat::event::EventLoopPtr loop, 
				fermat::net::SocketAddress& listenAddr,
				const std::string& name,
				 int threadnum);

	void start() { _server.start(); }

private:
	bool builder(fermat::http::HttpServerSession *hss);
	bool clear(fermat::http::HttpServerSession *hss);

private:
	fermat::http::HttpServer _server;

};


